package cn.hairui.fastms.core.mapper;

import cn.hairui.fastms.core.bean.SRoleResc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色资源关系表 Mapper 接口
 * </p>
 *
 * @author lihairui
 * @since 2020-11-29
 */
@Mapper
public interface SRoleRescMapper extends BaseMapper<SRoleResc> {
    //List<SRoleResc> selectAllByRoleCdeContainingOrderByRescCdeDesc(@Param("sUserRoleList") List<SUserRole> sUserRoleList);

    List<Map> selectRoleRescByRoleCde(String roleCde, String parentMenuId);

    SRoleResc selectRoleRescByRoleCdeAndRescCde(String roleCde, String rescCde);

}
